from rest_framework import serializers

from .models import AdsInfo

class AdsInfoSerializer(serializers.ModelSerializer):

    class Meta:
        model = AdsInfo
        fields = "__all__"
class AdsInfoListSerializer(serializers.ModelSerializer):

    class Meta:
        model = AdsInfo
	fields = ['adtitle','price','id']
